package com.witmore.skyline.web.service.third.tplink.dto;

import lombok.Data;

/**
 * Description: DeviceSDCardInfo
 * Author: 豆子高
 * Date: 2025/5/15 15:21
 */
@Data
public class DeviceSDCardInfo {
    /**
     * {
     *                 "index": 1,
     *                 "permission": "rw",
     *                 "totalSpace": "3.5G",
     *                 "freeSpace": "2.5G",
     *                 "recordDuration": 3600,
     *                 "recordStartTime": 123456,
     *                 "status": "normal"
     *             },
     */

    /**
     * SD卡索引
     */
    private Integer index;

    /**
     * SD卡权限
     * rw:读写
     * r:只读
     * w:只写
     */
    private String permission;

    /**
     * SD卡总空间
     */
    private String totalSpace;

    /**
     * SD卡剩余空间
     */
    private String freeSpace;

    /**
     * 已录制视频的时长，单位为秒
     */
    private Integer recordDuration;

    /**
     * 最早录像时间，UNIX时间戳，精确到秒
     */
    private Integer recordStartTime;

    /**
     * SD卡状态
     * none:不存在
     * unformatted：未格式化，只有格式化的磁盘才可使用
     * normal：正常
     * insufficient：SD卡容量太小
     */
    private String status;

}
